package news.dao;

import java.util.List;

import news.entity.Board;

public interface IBoardDao {
	
	/**
	 * 添加主题
	 * @param board
	 * @return
	 */
	boolean addBoard(Board board);
	
	/**
	 * 查询所有主题
	 * @return
	 */
	List<Board> executeBoard();
	
	/**
	 * 根据id删除
	 * @param boardId
	 * @return
	 */
	boolean deleteBoard(int boardId);
	
	/**
	 * 根据id获得当前
	 * @param boardId
	 * @return
	 */
	Board getPresent(int boardId);
	
	/**
	 * 根据id更新
	 * @param boardId
	 * @return
	 */
	boolean updateBoard(Board board);
}
